package cn.edu.sdjzu.xg.eagle.util;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class TxtHelper {
    public final static String readTxt(String filename) throws IOException{
        BufferedReader bf= new BufferedReader(new FileReader(filename));
        StringBuilder sb = new StringBuilder();
        String line = null;
        while ((line = bf.readLine()) !=null){
            sb.append(line);
        }
        bf.close();
        return sb.toString();
    }
}
